This resource address creates a flexible replication pull configuration for the database. The specified database pulls replicated updates from the target database.
URL Parameters | |
---|---|
format | The format of the returned data. Can be either
html , json , or xml (default). This value overrides
the Accept header if both are present. |
Upon success, MarkLogic Server returns status code 201 (Created), and the response body contains the requested data. If the payload is malformed or the database does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
pull-name
domain-id
target-id
enabled
urls
This is a complex structure with the following children:
url
http-options
This is a complex structure with the following children:
method
username
password
client-cert
client-key
client-pass-phrase
credential-id
verify-cert
proxy
kerberos-ticket-forwarding
cat flexrep-pull.json ==> { "pull-name": "docs2go", "domain-id": "123123123123123", "target-id": "543525254542523", "enabled": true, "url": [ "http://localhost:8011" ], "http-options": { "username": "admin", "password": "admin", "client-cert": "", "client-key": "", "client-pass-phrase": "" "credential-id":"1234567890" } } curl -X POST --anyauth --user admin:admin \ --header "Content-Type:application/json" -d@flexrep-pull.json \ http://localhost:8002/manage/v2/databases/Documents/flexrep/pulls?format=json ==> Configures the Documents database to pull replicated updates from the target database.